package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.BookTagDao;
import io.wdb.modules.generator.generator.entity.BookTagEntity;
import io.wdb.modules.generator.generator.service.BookTagService;



@Service("bookTagService")
public class BookTagServiceImpl implements BookTagService {
	@Autowired
	private BookTagDao bookTagDao;
	
	@Override
	public BookTagEntity queryObject(Long id){
		return bookTagDao.queryObject(id);
	}
	
	@Override
	public List<BookTagEntity> queryList(Map<String, Object> map){
		return bookTagDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bookTagDao.queryTotal(map);
	}
	
	@Override
	public void save(BookTagEntity bookTag){
		bookTagDao.save(bookTag);
	}
	
	@Override
	public void update(BookTagEntity bookTag){
		bookTagDao.update(bookTag);
	}
	
	@Override
	public void delete(Long id){
		bookTagDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		bookTagDao.deleteBatch(ids);
	}
	
}
